import Vue from 'vue';
import Vuex from 'vuex';
import mutations from './mutations';
import actions from './actions';

Vue.use(Vuex);

const state = {
  mocksStatus: null,
  paperInfo: null,
  totalPart: 0,
  currentPart: 0,
  questionNum: 0,
  totalScore: 0,
  partInfo: null,
  testTime: 0,
  paperType: '',
  paperTypeName: '',
  paperId: '',
  courseId: '',
  disablePrevBtn: true,
  disableNextBtn: true,
  isAllowRecord: false,
  mp3Recorder: null,
  showHeaderPart: false
};

export default new Vuex.Store({
  state,
  mutations,
  actions
});
